package com.zxy.basic.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangxiaoyang
 * @since 2020-06-17
 */
@TableName("opms_tenant_user")
@ApiModel(value="TenantUser对象", description="")
public class TenantUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("create_time")
    private Date createTime;

    @TableField("deleted")
    private Integer deleted;

    @TableField("update_time")
    private Date updateTime;

    @TableField("version")
    private Integer version;

    @TableField("email")
    private String email;

    @TableField("mobile")
    private String mobile;

    @TableField("tenant_id")
    private Long tenantId;

    @TableField("usercode")
    private String usercode;

    @TableField("username")
    private String username;

    @TableField("person_name")
    private String personName;

    @TableField("wx_open_id")
    private String wxOpenId;

    @TableField("user_id")
    private Long userId;

    @TableField("user_type")
    private Integer userType;

    @TableField("tenant_view_name")
    private String tenantViewName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }
    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }
    public String getWxOpenId() {
        return wxOpenId;
    }

    public void setWxOpenId(String wxOpenId) {
        this.wxOpenId = wxOpenId;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }
    public String getTenantViewName() {
        return tenantViewName;
    }

    public void setTenantViewName(String tenantViewName) {
        this.tenantViewName = tenantViewName;
    }

    @Override
    public String toString() {
        return "TenantUser{" +
        "id=" + id +
        ", createTime=" + createTime +
        ", deleted=" + deleted +
        ", updateTime=" + updateTime +
        ", version=" + version +
        ", email=" + email +
        ", mobile=" + mobile +
        ", tenantId=" + tenantId +
        ", usercode=" + usercode +
        ", username=" + username +
        ", personName=" + personName +
        ", wxOpenId=" + wxOpenId +
        ", userId=" + userId +
        ", userType=" + userType +
        ", tenantViewName=" + tenantViewName +
        "}";
    }
}
